package com.pig4cloud.pig.module.service.charger;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.common.mybatis.core.BaseService;
import com.pig4cloud.pig.module.api.entity.charger.ChargerEstateBattery;
import com.pig4cloud.pig.module.api.entity.charger.ChargerOrder;
import com.pig4cloud.pig.module.api.entity.charger.ChargerOrderDetailedList;
import com.pig4cloud.pig.module.api.entity.charger.ChargerUsedBattery;
import com.pig4cloud.pig.module.api.entity.dto.ChargerOrderDTO;

import java.util.List;
import java.util.Map;

/**
 * 订单Service接口
 *
 * @author ruoyi
 * @date 2022-05-07
 */
public interface IChargerOrderService extends BaseService<ChargerOrder> {

	List<ChargerOrderDTO> selectChargerOrderTongji(Page<ChargerOrder> page, Map<String, Object> map);

	List<ChargerUsedBattery> selectChargerUsedBattery(Page<ChargerUsedBattery> page, Map<String, Object> map);

	List<ChargerOrderDetailedList> selectChargerOrderDetailedList(Map<String, Object> map);

	List<ChargerOrderDTO> selectChargerOrderTongji(Map<String, Object> map);

	ChargerOrderDTO selectOrderTongjiByEstateId(Map<String, Object> map);

	List<ChargerEstateBattery> selectChargerEstateBattery(Map<String,Object> map);


	/**
	 *  大屏也上显示的  近2个月前6名的数据
	 * @param limit
	 * @return
	 */
	List<List<String>> getChargerByTop(int limit);

	/**
	 *  充电订单退款
	 * @param chargerOrder
	 * @return
	 */
	int refundChargerOrder(ChargerOrder chargerOrder);


	/**
	 *  退款查询
	 * @param chargerOrder
	 * @return
	 */
	int queryRefundChargerOrder(ChargerOrder chargerOrder);
}
